package com.haizhi.crm.biz.constant;

/**
 * Created by wangshan on 2018/6/20.
 */
public enum ModuleSourceType {
    MY_CUSTOMER("my" ),
    MY_CONCERN("concern" ),
    SUBORDINATE_CUSTOMER("subordinate" ),
    SUBORDINATE_CONCERN("subordinate_concern" ),
    FAVOURITE("favorite" ),
    USER_SHARE("share" );

    private String name;
    private String showName;

    ModuleSourceType(String name) {
        this.name = name;
    }

    public static ModuleSourceType getType(String name) {
        for (ModuleSourceType moduleSourceType : ModuleSourceType.values()) {
            if (name.equals(moduleSourceType.name)) {
                return moduleSourceType;
            }
        }
        return null;
    }


}
